package com.greentreecs.fms.pojo.domain;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.util.Objects;

/**
 * @author 刀氏春秋
 * @date 2025/6/8
 */
@Data
@ApiModel("单曲线数据点")
public class SingleCurveDO implements Comparable<SingleCurveDO> {
    private String dataDate;
    private Double pointVal;

    public void plusVal(Double val) {
        this.pointVal += val;
    }

    @Override
    public int compareTo(SingleCurveDO o) {
        return this.dataDate.compareTo(o.dataDate);
    }
}
